package com.qqtech.qquan.user.enums;
/**
 * 提现状态:1-申请中;2-提现中;3-已提现;4-已驳回
 * @author andy.wangzhh
 *
 */
public enum UserWithdrawStatusDictEnum {
	APPLYING(1),
	PAYING(2),
    FINISHED(3),
    REJECTED(4);
    int code;

    UserWithdrawStatusDictEnum (int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
    
    public static boolean isInScope(Integer code) {
		if (code == null) {
			return false;
		}
		UserWithdrawStatusDictEnum[] arrEnum = UserWithdrawStatusDictEnum.values();
		for (UserWithdrawStatusDictEnum e : arrEnum) {
			if (e.code == code.intValue()) {
				return true;
			}
		}
		return false;
	}
}
